﻿namespace Grow.Domain.Repository
{
    /// <summary>
    /// 工作单元管理器
    /// </summary>
    public interface IUnitOfWorkManager : IDisposable
    {

        /// <summary>
        /// 获取工作单元
        /// </summary>
        IUnitOfWork? CurrUnitOfWork { get; }
        /// <summary>
        /// 获取工作单元
        /// </summary>
        /// <returns></returns>
        IUnitOfWork GetUnitOfWork();
    }
}
